package com.standstill;

import com.standstill.auth.MyZuulFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@EnableZuulProxy
@SpringCloudApplication
public class GatewayCenterPrjApplication {

	public static void main(String[] args) {
		SpringApplication.run(GatewayCenterPrjApplication.class, args);
	}

	@Bean
	public MyZuulFilter accessFilter(){
		return new MyZuulFilter();
	}
}
